package view;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class window extends javax.swing.JFrame {
	private static final long serialVersionUID = 3598812240111445281L;
	private JMenuBar barraMenu;
	private JMenu File;
	private JMenu jMenu2;
	private JMenuItem impostazioni;
	private JMenuItem esci;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				window inst = new window();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public window() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				barraMenu = new JMenuBar();
				setJMenuBar(barraMenu);
				{
					File = new JMenu();
					barraMenu.add(File);
					File.setText("File");
					{
						impostazioni = new JMenuItem();
						File.add(impostazioni);
						impostazioni.setText("Impostazioni");
					}
					{
						esci = new JMenuItem();
						File.add(esci);
						esci.setText("Esci");
					}
				}
				{
					jMenu2 = new JMenu();
					barraMenu.add(jMenu2);
					jMenu2.setText("Visualizza");
				}
			}
			pack();
			setSize(400, 300);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
